// The Vue build version to load with the `import` command
// (runtime-only or standalone) has been set in webpack.base.conf with an alias.
import Vue from 'vue'
import App from './App'
import router from './router'

Vue.config.productionTip = false

import settings from "./settings"

Vue.prototype.$settings = settings;
/* eslint-disable no-new */

// elementUI 导入
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';

import axios from 'axios'; // 从node_modules目录中导入包
// 允许ajax发送请求时附带cookie
axios.defaults.withCredentials = false;

Vue.prototype.$axios = axios; // 把对象挂载vue中



require('video.js/dist/video-js.css');
require('vue-video-player/src/custom-theme.css');
import VideoPlayer from 'vue-video-player'
Vue.use(VideoPlayer);



//到日gt极验
import '../static/js/gt'
// 调用插件
Vue.use(ElementUI);

//加载项目初始化css样式
import '../static/css/reset.css';

new Vue({
  el: '#app',
  router,
  components: {App},
  template: '<App/>'
})



